Repository navigation
chore: 배포 설계 문서 · 운영 이미지 Dockerfile · CI 이미지 빌드 확인 (#88) - #97
Open
chjpooh2002 wants to merge 3 commits into
Open
chjpooh2002 wants to merge 3 commits into
chjpooh2002 wants to merge 3 commits into
Conversation
3 of 9 tasks
oTAETAEo
approved these changes
Nov 13, 2026
oTAETAEo
left a comment
Contributor
There was a problem hiding this comment.
고생하셨습니다 👏
배포 설계를 보면서 우아한 종료 쪽을 좀 생각해 봤습니다 !
스프링 부트는 기본으로 우아한 종료가 켜져 있고 단계별로 30초를 기다리는것으로 알고 있는데, compose의 정지 유예 기본값은 10초로 보입니다.
이 상태로 배포하면 AI 톤 교정같은 긴 요청이 중간에 끊기고, 사용량도 반환되지 않을 수 있습니다.
그래서 컨테이너 정지 부분을 앱의 종료 대기 시간 이상으로 맞추고, 교체 할때 때 구 컨테이너가 진행 중인 요청을 마무리한 뒤 내려가는 순서가 필요하다고 생각이 들었습니당
다른 이슈 부분에 진행 중 요청 마무리와 교대 순서가 들어가 있는것으로 봐서 이 부분은 후속 이슈에서 다루면 괜찮을 것 같습니다 !,
두 컨테이너가 뜰때도 생각을 해 봤는데 이미 후속 이슈에 있어서 괜춘할것 같읍니당 👍
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
관련 이슈
작업 내용
배포 설계 문서 (
docs/deploy-design.md)sniptext.kr·APIapi.sniptext.kr, 예산 $60(크레딧 제외), 앱 전용 DB 계정 분리, 출시 전 승인자 끔운영 이미지 (
Dockerfile,.dockerignore)RUN이 없음 → x86에서도 에뮬레이터 없이 arm64(EC2 t4g) 이미지 빌드TZ=Asia/SeoulJAVA_TOOL_OPTIONS로 받음 ([chore] 서버 실행 구성: compose 운영 파일·Caddy·배포 스크립트(상태 확인·되돌리기) #92)CI (
ci.yml)image작업 추가: x86 실행기에서 arm64 이미지 빌드 확인(푸시 없음)docker/setup-buildx-action@v4: 다른 아키텍처 빌드용 빌더 설정명세와 달라진 점
없음 (API 변경 없음)
테스트
/actuator/healthUP(10.7초 기동)id→uid=1000(ubuntu),date→ KST, 로그 시각+09:00docker buildx build --platform linux/arm64성공, 이미지 아키텍처arm64확인./gradlew build통과확인 체크리스트
./gradlew build통과global공통 코드 변경 없음리뷰어에게
ubuntu(uid 1000)를 쓴 이유: 사용자를 만들면 실행 단계에RUN이 생겨 arm64 빌드에 에뮬레이터가 필요해집니다image작업이 이 PR에서 처음 실행됩니다